/**
 * 
 */
package sistema.bd;

import java.util.Collection;

/**
 * @author Thiago Emmanuel Pereira da Cunha Silva, thiago.manel@gmail.com
 * @since 20/05/2006
 */
public interface GenericDAO<D> {

	/**
	 * 
	 * @param dao
	 */
	public void saveInstance(D dao);
	
	/**
	 * 
	 * @param dao
	 */
	public void removeInstance(D dao);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public D getInstance(Integer id);
	
	/**
	 * 
	 * @return
	 */
	public Collection<D> getAll();
}
